using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class CMSG_AUTH_SESSION_DEF : DefinitionBase
    {
                public override bool Process()
        {
            ResetPosition();

            int _ClientBuild = (int)ReadUInt16();

            if (ClientVersion.clientVersionList.ContainsKey(_ClientBuild))
            {
                UInt16 _unknown1 = ReadUInt16();
            }
            else
            {
                ResetPosition();
                _ClientBuild = (int)ReadUInt32();
            }
            UInt64 _unknown2 = ReadUInt32();
            string _accountName = ReadString();
            UInt64 _clientSeed = ReadUInt32();

            byte[] tLeftOvers = ReadBytes(AvailableBytes);

            Core.Load_CMSG_AUTH_SESSION(ClientBuild, AccountName);

            return true;// Validate();
        }
    }
}
